Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: unintended depot message and improve code #3361

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

omarcopires
Copy link
Contributor

Description

Fixes an issue where the depot message was sent even when no depot was nearby.
Also improves readability and prevents potential errors when accessing nil tiles.

Video.sem.titulo.Feito.com.o.Clipchamp.mp4

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I checked the PR checks reports
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

@majestyotbr
Copy link
Contributor

You can improve the function in the special tiles file without migrating to the libs.

@omarcopires
Copy link
Contributor Author

You can improve the function in the special tiles file without migrating to the libs.

It is a function of the player class, all class functions are in their respective files, unless it is a local function, then it would make sense.

@majestyotbr
Copy link
Contributor

You can improve the function in the special tiles file without migrating to the libs.

It is a function of the player class, all class functions are in their respective files, unless it is a local function, then it would make sense.

It's not necessary to move all player functions to the lib.
If you follow this logic, you would have to move, for example, the player functions of hirelings and of gamestore, which doesn't make sense, as they are local functions used by the systems.
In this case, it is a local function used for the special tiles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants